import service from '@/utils/request'

export const useAboutApi = (id: Number) => {
	return service.get('/sys/about/' + id)
}

export const useAboutSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/about', dataForm)
	} else {
		return service.post('/sys/about/save', dataForm)
	}
}

export const useAboutListApi = (dataForm: any) => {
	return service.post('/sys/about/list', dataForm)
}
